<template>
  <div>
    <input v-model="hobby" type="checkbox" value="科幻" /> 科幻
    <input v-model="hobby" type="checkbox" value="喜剧" /> 喜剧
    <input v-model="hobby" type="checkbox" value="动漫" /> 动漫
    <input v-model="hobby" type="checkbox" value="冒险" /> 冒险
    <input v-model="hobby" type="checkbox" value="科技" /> 科技
    <input v-model="hobby" type="checkbox" value="军事" /> 军事 
    <input v-model="hobby" type="checkbox" value="娱乐" /> 娱乐
    <input v-model="hobby" type="checkbox" value="奇闻" /> 奇闻
    <ul>
      <li v-for='(item) in hobby' :key='item'>{{item}}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
     hobby:[],
 
    };
  },
  methods: {
    
  },
};
</script>

<style lang="scss" scoped>

</style>